// 导入mockjs
import Mock from 'mockjs';
const mockArrNew = import.meta.glob('./modules/*.js', { eager: true });
let mockApi = [];
Object.values(mockArrNew).forEach((el) => {
  mockApi = [...mockApi, ...el.default];
});
mockApi.forEach((key) => {
  Mock.mock(key.url, key.methods, key.response);
});
